<template>
  <UiModal
    :is-open="isOpen"
    :title="title"
    max-width="md"
    @close="$emit('close')"
  >
    <slot />
  </UiModal>
</template>

<script setup lang="ts">
import { UiModal } from '../ui'

interface Props {
  isOpen: boolean
  title: string
}

defineProps<Props>()

defineEmits<{
  close: []
}>()
</script> 